package com.cloudkinto.vo.order.outbound;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 中转出库单查看装箱明细
 *
 * @author long
 */
@Data
public class TransferOutboundPackDetail {
    @ApiModelProperty("出库单id")
    private Long id;

    @ApiModelProperty("出库类型")
    private Integer outboundMode;

    @ApiModelProperty("出库单号")
    private String outboundNo;

    @ApiModelProperty("出库托盘数")
    private Integer palletNum;

//    @ApiModelProperty("装箱信息")
//    private List<TransferOutboundPackDetail.PackBoxInfo> packInfoList = new ArrayList<>();

    @ApiModelProperty("出库单包裹列表")
    private List<OutboundPackageDetail> outboundPackageList = new ArrayList<>();


    @ApiModelProperty("产品信息")
    private List<TransferOutboundPackDetail.ProductInfo> productInfoList = new ArrayList<>();

    /*@Data
    public static class PackBoxInfo {
        private Long id;
        @ApiModelProperty("箱类号")
        private String boxTypeNumber;
        private BigDecimal height;
        private BigDecimal heightBs;
        private BigDecimal length;
        private BigDecimal lengthBs;
        private BigDecimal width;
        private BigDecimal widthBs;
        private BigDecimal weight;
        private BigDecimal weightBs;
        @ApiModelProperty("箱数")
        private Integer boxTotalQty;
        private List<TransferOutboundPackDetail.ProductInfo> skuList;
    }*/

    @Data
    public static class ProductInfo {
        private Long productId;
        private String skuOrBoxTypeNumber;
        private String janCodeOrItf;
        private String productName;
        private BigDecimal length;
        private BigDecimal lengthBs;
        private BigDecimal width;
        private BigDecimal widthBs;
        private BigDecimal height;
        private BigDecimal heightBs;
        private BigDecimal weight;
        private BigDecimal weightBs;
        private Integer qty;
    }
}
